package com.study.mike.common.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;

/**
 * @author KangHui
 * @Date 2023/9/8 11:57
 */
public enum OrderStatusEnum {
    INITIATE(0, "已发起"),
    EXAMINE(1, "已审核"),
    VERIFY(2, "已确认"),
    COMPLETE(3, "已完成");
    @EnumValue
    private Integer code;
    @JsonValue
    private String value;

    OrderStatusEnum(Integer code, String value) {
        this.code = code;
        this.value = value;
    }

    public Integer getCode() {
        return code;
    }

    public String getValue() {
        return value;
    }


}
